function regExpMatch(url, pattern) {
	try { return new RegExp(pattern).test(url); } catch(ex) { return false; }
}

function FindProxyForURL(url, host) {
	if (shExpMatch(url, '*googlecode.com*')) return 'PROXY 10.249.200.122:9001';
	if (shExpMatch(url, '*docs.googleusercontent.com*')) return 'PROXY 10.249.200.122:9001';
	if (shExpMatch(url, '*www.google.com*')) return 'PROXY 10.249.200.122:9001';
	if (shExpMatch(url, '*docs.google.com*|*groups.google.com*|*greenvpn.net*|*appspot.com*|*plus.google.com*|https://code.google.com*|*http://jimh.googlecode.com*|*www.chinagfw.org*|*facebook.com*|*t.co*|*twitter.com*|*wikileaks.org*|*youtube.com*|*ytimg.com*|*.mail-archive.com*|*osdir.com*')) return 'PROXY 10.249.200.122:9001';
	return 'DIRECT';
}